#{extends 'admintemplate.html' /}
#{set title:'Edit Category' /}
#{set active:'active' /}

#{set main_title:'Quản Lý Danh Mục'/}
#{set sub_title:'Thêm/Xóa/Sữa Danh Mục'/}
#{set 'moreScripts'}
      <script src="@{'/public/admin/js/bootstrap-modal.js'}" type="text/javascript"></script>
#{/set}
<div class="span12">
	<div style="padding: 16px 19px;" class="well">
		<form class="form" enctype="multipart/form-data" method="post" action="/admin/editCategory" id="editCategoryForm">
			<fieldset>
			    <div class="clearfix">
					<div class="input">
						<h2 style="color: red;">Edit Category</h2>
					</div>
				</div>
				<div class="clearfix">
					<label for="name">Name</label>
					<div class="input">
						<input type="text" name="name" value="${category?.name}">
					</div>
				</div>
				<div class="clearfix">
					<label for="data">File</label>
					<div class="input">
						<input type="file" name="data">
					</div>
					<div class="input">
						When choose file,it will overide old file
					</div>
				</div>
				<div class="clearfix">
					<label for="description">Description</label>
					<div class="input">
						<textarea name="description" cols="200" rows="5" >${category?.description}</textarea>
					</div>
				</div>

				<div class="clearfix">
					<label for="selectbox">Select list</label>
					<div class="input">
						<select name="selectbox">
							<option value="dongphuc">Đồng Phục</option>
							<option value="bhld">Bảo Hộ Lao Động</option>
						</select>
					</div>
				</div>

				<input type="hidden" name="categoryId" value="${category?.id}">
				<div class="actions">
					<input type="submit" value="Cập nhật" class="btn primary">
				</div>
			</fieldset>
		</form>
	</div>
</div>
